<?php
$online_view = Mage::app()->getStore()->getStoreId();
$home_url    =  Mage::helper('core/url')->getHomeUrl();
$img_url     = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN);
$banner_en_1  = $img_url . "frontend/em0131/em0131_marketdeal/images/landing-page/online_offer/banner_en_1.png";
$banner_en_2  = $img_url . "frontend/em0131/em0131_marketdeal/images/landing-page/online_offer/banner_en_2.png";
$banner_ru_1  = $img_url . "frontend/em0131/em0131_marketdeal/images/landing-page/online_offer/banner_ru_1.png";
$banner_ru_2  = $img_url . "frontend/em0131/em0131_marketdeal/images/landing-page/online_offer/banner_ru_2.png";

?>
<div class="online_offer">
	<div class="online_content">
		<div style="margin: 0px auto;">
			<div class="time_css">
				<div  class="timeline-block up_top_banner" style="position: relative;">
					<div class="time_top_img time_top_imgs" style="">
						<div></div>
					</div>
					<div class="timeline-content">
						<h4>
							<?php echo $this->__("Part 1:  Up to 50% OFF! Exclusive Offers on 3C, Apparel & Accessories and More!") ?>						
						</h4>
						<p>
							<a target="_blank" href="<?php echo $home_url  ?>promoteevents/events/index/type/3c_products_collection">
							<img src="<?php echo ($online_view == '2')?$banner_ru_1:$banner_en_1 ?>" alt="">
							</a>
						</p>
						<a name="coupon_code">&nbsp;</a>
						<p>
							<a target="_blank" href="<?php echo $home_url  ?>promoteevents/events/index/type/fashion_products_collection"><img src="<?php echo ($online_view == '2')?$banner_ru_2:$banner_en_2 ?>" alt=""></a>
						</p>
					</div>
				</div>
				<div  class="timeline-block coupon_code" style="position: relative;">
					<div class="time_top_img" style="">
						<div></div>
					</div>
					<div class="timeline-content">
						<h4><?php echo $this->__("Part 2:  Get a Free Coupon Code on All Items of Rumall.com!") ?></h4>
						<p><span><?php echo $this->__("Coupon Using Rules") ?></span></p>
						<div>
							<ul>
								<li><?php echo $this->__("Order(s)") ?></li>
								<li><?php echo $this->__("Discount") ?></li>
								<li><?php echo $this->__("$10≤order(s) ＜$25") ?></li>
								<li><?php echo $this->__("$1 OFF") ?></li>
								<li><?php echo $this->__("$25≤order(s)＜$35") ?></li>
								<li><?php echo $this->__("$3 OFF") ?></li>
								<li><?php echo $this->__("$35≤order(s)") ?></li>
								<li><?php echo $this->__("$5 OFF") ?></li>
							</ul>
						</div>
						<div class="online_page">
							<p><a href="#footers"><?php echo $this->__("Get a Free Coupon Code") ?></a></p>
							<p><?php echo $this->__("Sign up for our newsletter and get coupons worth a total of 9 USD.") ?></p>
						</div>
						<div>
							<ol>
								<li><?php echo $this->__("Each coupon can be used only once.") ?></li>
								<li><?php echo $this->__("Login to use and each order can only use one coupon.") ?></li>
								<li><?php echo $this->__("Validity period: 4th Jul. – 17th Jul. UTC+3") ?></li>
							</ol>
						</div>	
					</div>
				</div>
				<div  class="timeline-block get_extra" style="position: relative;">
					<div class="time_top_img">
						<div></div>
					</div>
					<div class="timeline-content">
						<h4><?php echo $this->__("Part 3:  Share to Get Extra Bonus! $ 1 for Free!") ?></h4>
						<p><span class="extra_1"><?php echo $this->__("How to Get?") ?></span></p>
						<p><?php echo $this->__("Simply share a Rumall product your have purchased on your VK/OK/Facebook/Twitter/YouTube/Instagram. Send the screenshots and links to our Customer Servicers (service@rumall.com) and we’ve got coupons to reward you!") ?>
						</p>
						<p><span class="extra_2"><?php echo $this->__("What Will You Get?") ?></span></p>
						<div>
							<ol>
								<li><?php echo $this->__("Every participant can receive a FREE $1 OFF Coupon Code.") ?></li>
								<li><?php echo $this->__("No order amount limited and each order can only use one coupon.") ?></li>
								<li><?php echo $this->__("The coupon will be sent by email.") ?></li>
								<li><?php echo $this->__("Validity Period: 18th Jul. – 18th Aug. UTC+3") ?></li>
							</ol>
						</div>
						<p><span class="extra_3"><?php echo $this->__("Sharing Period") ?></span></p>
						<p><?php echo $this->__("4th Jul. – 17th Jul. UTC+3") ?></p><br/>
						<p><?php echo $this->__("Rumall.com reserves the rights to the final explanation of the campaign. Any questions regarding the campaign please email to service@rumall.com.") ?></p>
					</div>
				</div>
			</div>
		</div>
	</div>
	<a name="footers">&nbsp;</a>
</div>



<?php

//配置项
$img_url     = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN);
$img_url_1   = $img_url .'frontend/em0131/em0131_marketdeal/images/landing-page/online_offer/left_bottom.png';

$img_url_en1  = $img_url . "frontend/em0131/em0131_marketdeal/images/landing-page/online_offer/home-en-1.png";
$img_url_en2  = $img_url . "frontend/em0131/em0131_marketdeal/images/landing-page/online_offer/home-en-2.png";
$img_url_ru1  = $img_url . "frontend/em0131/em0131_marketdeal/images/landing-page/online_offer/home-ru-1.png";
$img_url_ru2  = $img_url . "frontend/em0131/em0131_marketdeal/images/landing-page/online_offer/home-ru-2.png";
$language_img1 =(Mage::app()->getStore()->getStoreId() == '2')?$img_url_ru1:$img_url_en1;
$language_img2 =(Mage::app()->getStore()->getStoreId() == '2')?$img_url_ru2:$img_url_en2;
?>

<script type="text/javascript">
//<![CDATA[
    (function($) {  
        $('.em-wrapper-main').css({"margin-top":"2rem","position":"relative"});
        var bane = '<div style="position: absolute;top:0px;width: 100%;"><div style="width: 50%;display: inline-block;background: url(<?php echo $language_img1 ?>) no-repeat right top;height: 866px;"></div><div style="width: 50%;display: inline-block;background: url(<?php echo $language_img2 ?>) no-repeat left top;height: 866px;"></div></div>';
        $('.em-wrapper-main > .container').before(bane);

        $('.em-wrapper-main').append('<div style="position:absolute;bottom:0;right:0;background: url(<?php echo $img_url_1; ?>) no-repeat right bottom; width:100%;height:332px;"></div>')
        $('.em-wrapper-main >div').css({"margin-top":"0","padding-top":"0"});
        $('.em-wrapper-main .online_content').before('<div class="online_top_banner"><div style="width: 100%;height: 624px;"></div></div>');
    })(jQuery); 
//]]>
</script>
